<?php

use App\Http\Controllers\Api\Index;
use Illuminate\Support\Facades\Route;

use App\Http\Controllers\Api\PreTake;
use App\Http\Controllers\Api\My;
use App\Http\Controllers\Api\Task;


Route::post('/code/login', [Index::class, 'login_code']);
Route::post('/login', [Index::class, 'login']);
Route::post('/send/sms', [Index::class, 'sendSms']);
//上传
Route::post('/upload', [Index::class, 'upload']);

//登录,个人中心
Route::post('/login', [Index::class, 'login']);
Route::get('/user/info', [Index::class, 'info']);
Route::get('/buttons', [Index::class, 'buttons']);
Route::get('/menu', [Index::class, 'menu']);
Route::put('/info', [Index::class, 'update']);
Route::put('/password', [Index::class, 'modify_password']);



    //取件任务
    Route::get('/pre/take', [PreTake::class, 'list']);
    Route::put('/pre/take/accept/{id}', [PreTake::class, 'accept']);
    Route::put('/pre/take/complete/{id}', [PreTake::class, 'complete']);
    Route::put('/pre/take/fail/{id}', [PreTake::class, 'fail']);
    Route::put('/pre/take/warehouse/{id}', [PreTake::class, 'warehouse']);
    Route::get('/pre/take/detail', [PreTake::class, 'detail']);

    //配载任务
    Route::get('/task/list', [Task::class, 'list']);
    Route::get('/task/location', [Task::class, 'warehouse_location']);
    Route::get('/task/confirm', [Task::class, 'confirm']);
    Route::get('/task/warehouse', [Task::class, 'warehouse']);
    Route::get('/task/pass', [Task::class, 'pass']);
    Route::get('/task/load_list', [Task::class, 'load_list']);
    Route::get('/task/complete', [Task::class, 'complete']);
    Route::get('/task/detail', [Task::class, 'detail']);
    Route::get('/task/driver/location', [Task::class, 'location']);
    Route::get('/task/arrive_load', [Task::class, 'arrive_load']);
    Route::get('/task/arrive_unload', [Task::class, 'arrive_unload']);
    Route::get('/task/status_confirm', [Task::class, 'confirm_status']);

    //我的
    Route::get('/my', [My::class, 'index']);
    Route::get('/my/account', [My::class, 'account']);
    Route::get('/my/msg', [My::class, 'msg']);








